/* 数据-配送司机
 */

import { postRequest, getRequest, getDownload } from '@/lib/axios';

export const driverApi = {
  // 配送司机列表
  queryDriverList: (param) => {
    return getRequest('/driver/list', param);
  },
  // 配送司机列表新增
  addDriver: (param) => {
    return postRequest('/driver/add', param);
  },
  // 配送司机列表编辑
  editDriver: (param) => {
    return postRequest('/driver/edit', param);
  },
  // 配送司机列表修改
  modifyDriver: (param) => {
    return postRequest('/driver/modify', param);
  },
  // 配送司机列表删除
  delDriver: (param) => {
    return postRequest('/driver/del', param);
  },
};
